package zjhr.com.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ZjOutmoneyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ZjOutmoneyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andOutidIsNull() {
            addCriterion("outId is null");
            return (Criteria) this;
        }

        public Criteria andOutidIsNotNull() {
            addCriterion("outId is not null");
            return (Criteria) this;
        }

        public Criteria andOutidEqualTo(String value) {
            addCriterion("outId =", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidNotEqualTo(String value) {
            addCriterion("outId <>", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidGreaterThan(String value) {
            addCriterion("outId >", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidGreaterThanOrEqualTo(String value) {
            addCriterion("outId >=", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidLessThan(String value) {
            addCriterion("outId <", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidLessThanOrEqualTo(String value) {
            addCriterion("outId <=", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidLike(String value) {
            addCriterion("outId like", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidNotLike(String value) {
            addCriterion("outId not like", value, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidIn(List<String> values) {
            addCriterion("outId in", values, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidNotIn(List<String> values) {
            addCriterion("outId not in", values, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidBetween(String value1, String value2) {
            addCriterion("outId between", value1, value2, "outid");
            return (Criteria) this;
        }

        public Criteria andOutidNotBetween(String value1, String value2) {
            addCriterion("outId not between", value1, value2, "outid");
            return (Criteria) this;
        }

        public Criteria andOutdateIsNull() {
            addCriterion("outDate is null");
            return (Criteria) this;
        }

        public Criteria andOutdateIsNotNull() {
            addCriterion("outDate is not null");
            return (Criteria) this;
        }

        public Criteria andOutdateEqualTo(Date value) {
            addCriterionForJDBCDate("outDate =", value, "outdate");
            return (Criteria) this;
        }

        public Criteria andOutdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("outDate <>", value, "outdate");
            return (Criteria) this;
        }

        public Criteria andOutdateGreaterThan(Date value) {
            addCriterionForJDBCDate("outDate >", value, "outdate");
            return (Criteria) this;
        }

        public Criteria andOutdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("outDate >=", value, "outdate");
            return (Criteria) this;
        }

        public Criteria andOutdateLessThan(Date value) {
            addCriterionForJDBCDate("outDate <", value, "outdate");
            return (Criteria) this;
        }

        public Criteria andOutdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("outDate <=", value, "outdate");
            return (Criteria) this;
        }

        public Criteria andOutdateIn(List<Date> values) {
            addCriterionForJDBCDate("outDate in", values, "outdate");
            return (Criteria) this;
        }

        public Criteria andOutdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("outDate not in", values, "outdate");
            return (Criteria) this;
        }

        public Criteria andOutdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("outDate between", value1, value2, "outdate");
            return (Criteria) this;
        }

        public Criteria andOutdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("outDate not between", value1, value2, "outdate");
            return (Criteria) this;
        }

        public Criteria andOutcommentIsNull() {
            addCriterion("outComment is null");
            return (Criteria) this;
        }

        public Criteria andOutcommentIsNotNull() {
            addCriterion("outComment is not null");
            return (Criteria) this;
        }

        public Criteria andOutcommentEqualTo(String value) {
            addCriterion("outComment =", value, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentNotEqualTo(String value) {
            addCriterion("outComment <>", value, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentGreaterThan(String value) {
            addCriterion("outComment >", value, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentGreaterThanOrEqualTo(String value) {
            addCriterion("outComment >=", value, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentLessThan(String value) {
            addCriterion("outComment <", value, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentLessThanOrEqualTo(String value) {
            addCriterion("outComment <=", value, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentLike(String value) {
            addCriterion("outComment like", value, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentNotLike(String value) {
            addCriterion("outComment not like", value, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentIn(List<String> values) {
            addCriterion("outComment in", values, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentNotIn(List<String> values) {
            addCriterion("outComment not in", values, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentBetween(String value1, String value2) {
            addCriterion("outComment between", value1, value2, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutcommentNotBetween(String value1, String value2) {
            addCriterion("outComment not between", value1, value2, "outcomment");
            return (Criteria) this;
        }

        public Criteria andOutmoneyIsNull() {
            addCriterion("outMoney is null");
            return (Criteria) this;
        }

        public Criteria andOutmoneyIsNotNull() {
            addCriterion("outMoney is not null");
            return (Criteria) this;
        }

        public Criteria andOutmoneyEqualTo(String value) {
            addCriterion("outMoney =", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyNotEqualTo(String value) {
            addCriterion("outMoney <>", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyGreaterThan(String value) {
            addCriterion("outMoney >", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyGreaterThanOrEqualTo(String value) {
            addCriterion("outMoney >=", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyLessThan(String value) {
            addCriterion("outMoney <", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyLessThanOrEqualTo(String value) {
            addCriterion("outMoney <=", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyLike(String value) {
            addCriterion("outMoney like", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyNotLike(String value) {
            addCriterion("outMoney not like", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyIn(List<String> values) {
            addCriterion("outMoney in", values, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyNotIn(List<String> values) {
            addCriterion("outMoney not in", values, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyBetween(String value1, String value2) {
            addCriterion("outMoney between", value1, value2, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyNotBetween(String value1, String value2) {
            addCriterion("outMoney not between", value1, value2, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutnameIsNull() {
            addCriterion("outName is null");
            return (Criteria) this;
        }

        public Criteria andOutnameIsNotNull() {
            addCriterion("outName is not null");
            return (Criteria) this;
        }

        public Criteria andOutnameEqualTo(String value) {
            addCriterion("outName =", value, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameNotEqualTo(String value) {
            addCriterion("outName <>", value, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameGreaterThan(String value) {
            addCriterion("outName >", value, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameGreaterThanOrEqualTo(String value) {
            addCriterion("outName >=", value, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameLessThan(String value) {
            addCriterion("outName <", value, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameLessThanOrEqualTo(String value) {
            addCriterion("outName <=", value, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameLike(String value) {
            addCriterion("outName like", value, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameNotLike(String value) {
            addCriterion("outName not like", value, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameIn(List<String> values) {
            addCriterion("outName in", values, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameNotIn(List<String> values) {
            addCriterion("outName not in", values, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameBetween(String value1, String value2) {
            addCriterion("outName between", value1, value2, "outname");
            return (Criteria) this;
        }

        public Criteria andOutnameNotBetween(String value1, String value2) {
            addCriterion("outName not between", value1, value2, "outname");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}